<template>
    <div class="header">    
        <h3 @click="goback" class="back" >&lt;&lt;上一级</h3>
        <h3 class="desc_title">{{title}}</h3>
    </div>
</template>

<script>
    export default{
        name:"Navbar",
        props:["title"],
        methods:{
            goback(){
                this.$router.go(-1)
            }
        }
    }
</script>
<style lang="css" scoped>
    .header{
        width: 100%;
        height: 40px;
        position: relative;
        background-color: greenyellow;
    }
    h3{
        float: left;
    }
    h3.back{
        margin-left: 15px;
    }
    h3.desc_title{
        position: absolute;
        left: 40%;
        text-align: center;
    }
</style>